package com.itheima.proxy.jdk_proxy;

import java.lang.reflect.Proxy;

/**
 * @Author 王加鑫
 * @Date 2021/08/06 18:49
 * @Since JDK 1.8
 * 租客类
 */
public class Tenant {

    //JDK动态代理
    public static void main(String[] args) {
        HouseMan houseMan = new HouseManImpl();
        JdkProxy jdkProxy = new JdkProxy(houseMan);
        HouseMan proxy = (HouseMan) jdkProxy.createJdkProxy();
        proxy.chuZu();
    }
}
